package com.smalluz.ad.modules.oe.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.smalluz.ad.modules.common.result.BaseResult;
import com.smalluz.ad.modules.common.util.json.JacksonUtils;
import com.smalluz.ad.modules.oe.result.report.AdReportResultInfo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author biteam
 * @Title: AdReportResult
 * @Description: TODO(描述)
 * @site http://www.smalluz.com/
 * @email 510711793@qq.com
 * @date 2022-06-16 21:10
 */
@Data
@EqualsAndHashCode(callSuper=false)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class AdReportResult extends BaseResult {

    private static final long serialVersionUID = -8971551552036855071L;
    
    @JsonProperty("data")
    private AdReportResultInfo data;

    public static AdReportResult fromJson(String json) {
        return JacksonUtils.jsn2bean(json, AdReportResult.class);
    }
}
